@extends('admin.layouts.app')
@section('product','active')
@section('pro-type','active')

@section('style')
     <!-- Bootstrap Select Css -->
    <link href="{{asset('admin/plugins/bootstrap-select/css/bootstrap-select.css')}}" rel="stylesheet" />
    <!-- Dropzone Css -->
    <link href="{{asset('admin/plugins/dropzone/dropzone.css')}}" rel="stylesheet">
    <style>
    .dropzone .dz-preview {
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin: 7px;
    margin: 7px;
    min-height: 100px;
}
    </style>

@endsection

@section('content')
    
     <div class="container-fluid">
            <div class="block-header">
                <h2>
                    微信配置
                </h2>
            </div>
            <!-- Basic Validation -->
            <div class="row clearfix">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <div class="row">
                        <div class="card col-lg-12">
                        
                        <div class="body">
                            <form id="form_validation"  action="{{ route('wechat.store') }}" method="POST" enctype="multipart/form-data">
                            {{csrf_field()}}
                            
                                <div class="form-group form-float">
                                    <div class="form-line">
                                        <input type="text" class="form-control" value="{{$wcs->webname}}"  name="webname" required>
                                        <label class="form-label">公众号名称</label> 
                                    </div>
                                </div>  

                                <div class="form-group form-float">
                                    <div class="form-line">
                                        <input type="text" class="form-control"  value="{{$wcs->account}}"  name="account" required>
                                        <label class="form-label">微信号</label> 
                                    </div>
                                </div>  

                                <div class="form-group form-float">
                                    <div class="form-line">
                                        <input type="text" class="form-control"   value="{{$wcs->appid}}" name="appid" required>
                                        <label class="form-label">AppId</label> 
                                    </div>
                                </div>  

                                <div class="form-group form-float">
                                    <div class="form-line">
                                        <input type="text" class="form-control"  value="{{$wcs->appsecret}}"  name="appsecret" required>
                                        <label class="form-label">AppSecret</label> 
                                    </div>
                                </div>  

                                <div class="form-group form-float">
                                    <div class="form-line">
                                        <input type="text" class="form-control" value="{{$wcs->token}}"  name="token" readonly>
                                        <label class="form-label">Token</label> 
                                    </div>
                                </div>  

                                <div class="form-group form-float">
                                    <div class="form-line">
                                        <input type="text" class="form-control" value="{{$wcs->encodingaeskey}}" name="encodingaeskey" readonly>
                                        <label class="form-label">Encodingaeskey</label> 
                                    </div>
                                </div>  
                                
                                
{{-- 
                                <div class="form-group">
                                    <input type="checkbox" id="checkbox" name="checkbox">
                                    <label for="checkbox">I have read and accept the terms</label>
                                </div> --}}
                                <button id="sub" class="btn btn-primary waves-effect" type="submit">SUBMIT</button>

                            </form>
                        </div>
                    </div>
 

                    </div>
                    
                </div>
            </div>
            <!-- #END# Basic Validation -->

     </div>


@endsection

@section('js-script')
    {{-- expr --}}
    <!-- Jquery Core Js -->
    <script src="{{ asset('admin/plugins/jquery/jquery.min.js') }}"></script>

    <!-- Bootstrap Core Js -->
    <script src="{{ asset('admin/plugins/bootstrap/js/bootstrap.js') }}"></script>

    <!-- Select Plugin Js -->
    <script src="{{ asset('admin/plugins/bootstrap-select/js/bootstrap-select.js') }}"></script>

    <!-- Slimscroll Plugin Js -->
    <script src="{{ asset('admin/plugins/jquery-slimscroll/jquery.slimscroll.js') }}"></script>

    <!-- Waves Effect Plugin Js -->
    <script src="{{ asset('admin/plugins/node-waves/waves.js') }}"></script>

    <!-- Jquery CountTo Plugin Js -->
    <script src="{{ asset('admin/plugins/jquery-countto/jquery.countTo.js') }}"></script>

    <!-- Morris Plugin Js -->
    <script src="{{ asset('admin/plugins/raphael/raphael.min.js') }}"></script>
    <script src="{{ asset('admin/plugins/morrisjs/morris.js') }}"></script>
    <script src="{{asset('admin/plugins/dropzone/dropzone.js')}}"></script>
 

    <!-- Custom Js -->
    <script src="{{ asset('admin/js/admin.js') }}"></script>
    {{-- <script src="{{ asset('admin/js/pages/forms/advanced-form-elements.js')}}"></script> --}}
    <script type="text/javascript">
       
    </script>

    <script src=".{{ asset('admin/js/pages/ui/modals.js') }}"></script>

    <!-- Demo Js -->
    <script src="{{ asset('admin/js/demo.js') }}"></script> 
@endsection